package com.ssm.mapper;

import com.ssm.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    public void insert(User user);

    public void update(User user);

    public void delete(@Param("userName")String userName);

    public List<User> selectUsersPage(@Param("userName") String userName);

    public Integer countSize(@Param("userName") String userName);

    public User selectByUserName(@Param("userName") String userName);

    public User selectByUserNameAndPsssword(@Param("userName") String userName, @Param("password") String password);
}
